#pragma once
#include <iostream>
#include <qstring.h>
#include <qjsonobject.h>
#include <qjsonarray.h>
using namespace std;
const int teamNum = 1e2 + 5;
class team
{
public:
	team();
	team(QString name);
	~team();
	QString getName();
	void setName(QString name);
	int* getVal();
	void setVal(int index, int value);
	void addVal(int index, int value);
	void swapVal(int m, int n);
	int sumVal(int index);
	QJsonObject toJsonObject();
private:
	QString name;
	int val[teamNum] = { 0 };
};

